#include<iostream>
using namespace std;
typedef long long LL;
LL n;
int main()
{
	cin >> n;
	LL ans = 1;
	for (LL i = 2; i * i <= n; i++) {
		if (n % i == 0) {
			ans++;
		}
	}
	cout << ans * 2 << endl;
	return 0;
}